-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Conversation
2bf064d
to
4c3943a
Compare
ethcore/wasm/src/lib.rs
Outdated
@@ -70,14 +82,14 @@ impl vm::Vm for WasmInterpreter { | |||
fn exec(&mut self, params: ActionParams, ext: &mut vm::Ext) -> vm::Result<GasLeft> { | |||
let (module, data) = parser::payload(¶ms, ext.schedule().wasm())?; | |||
|
|||
let loaded_module = wasmi::Module::from_parity_wasm_module(module).map_err(Error)?; | |||
let loaded_module = wasmi::Module::from_parity_wasm_module(module).map_err(Error::Interpreter)?; | |||
|
|||
let instantiation_resolover = env::ImportResolver::with_limit(16); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instantiation_resolver
rules::Set::new( | ||
wasm_costs.regular, | ||
{ | ||
let mut vals = ::std::collections::HashMap::with_capacity(8); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why increase the capacity?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Float disabling rules include 4 entries
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall LGTM, but I'm totally unfamiliar with this code so someone should have a look at it.
# Conflicts: # Cargo.lock
# Conflicts: # Cargo.lock
Cargo.lock
Outdated
] | ||
|
||
[[package]] | ||
name = "wasmi" | ||
version = "0.0.0" | ||
source = "git+https://github.com/pepyakin/wasmi#551c99273042deaad869c17798060e2212deacab" | ||
source = "git+https://github.com/pepyakin/wasmi#f1a3f06d5e49798e2aa28150e863af1c7910bfc2" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is now in paritytech, right?
* update wasmi, parity-wasm, wasm-utils to latest version * Update to new wasmi & error handling * also utilize new stack limiter * fix typo * replace dependency url * Cargo.lock update
* update wasmi, parity-wasm, wasm-utils to latest version * Update to new wasmi & error handling * also utilize new stack limiter * fix typo * replace dependency url * Cargo.lock update
* update wasmi, parity-wasm, wasm-utils to latest version * Update to new wasmi & error handling * also utilize new stack limiter * fix typo * replace dependency url * Cargo.lock update
* Postpone Kovan hard fork (#8137) * ethcore: postpone Kovan hard fork * util: update version fork metadata * WASM libraries bump (#7970) * update wasmi, parity-wasm, wasm-utils to latest version * Update to new wasmi & error handling * also utilize new stack limiter * fix typo * replace dependency url * Cargo.lock update
* Support parity protocol. (#8035) * updater: apply exponential backoff after download failure (#8059) * updater: apply exponential backoff after download failure * updater: reset backoff on new release * Max code size on Kovan (#8067) * Enable code size limit on kovan * Fix formatting. * Limit incoming connections. (#8060) * Limit ingress connections * Optimized handshakes logging * WASM libraries bump (#7970) * update wasmi, parity-wasm, wasm-utils to latest version * Update to new wasmi & error handling * also utilize new stack limiter * fix typo * replace dependency url * Cargo.lock update * add some dos protection (#8084) * revert removing blooms (#8066) * Revert "fix traces, removed bloomchain crate, closes #7228, closes #7167" This reverts commit 1bf6203. * Revert "fixed broken logs (#7934)" This reverts commit f8a2e53. * fixed broken logs * bring back old lock order * remove migration v13 * revert CURRENT_VERSION to 12 in migration.rs * more dos protection (#8104) * Const time comparison (#8113) * Use `subtle::slices_equal` for constant time comparison. Also update the existing version of subtle in `ethcrypto` from 0.1 to 0.5 * Test specifically for InvalidPassword error. * fix trace filter returning returning unrelated reward calls, closes #8070 (#8098) * network: init discovery using healthy nodes (#8061) * network: init discovery using healthy nodes * network: fix style grumble * network: fix typo * Postpone Kovan hard fork (#8137) * ethcore: postpone Kovan hard fork * util: update version fork metadata * Disable UI by default. (#8105) * dapps: update parity-ui dependencies (#8160)
along with somewhat extended error handling